package com.qc31.monitorlib.ui.alarms

import com.qc31.comlib.Keys


/** @Author Jasper @Time 2020/12/9 @Desc 通用报警查询 */
class NormalAlarmActivity : BaseAlarmActivity() {
    override val isAdas: Boolean
        get() = false

    override fun initView() {
        super.initView()
        initIntent()
    }

    private fun initIntent() {
        val carId = intent.getStringExtra(Keys.INTENT_CAR_ID)
        val carName = intent.getStringExtra(Keys.INTENT_PLATE) ?: ""
        if (carId == null) return
        mBaseViewModel.carId = carId
        mBaseViewModel.carName = carName
        mChooseVB.lrvChooseCar.setRightText(carName)
        mChooseVB.lrvChooseCar.isEnabled = false
    }
}